home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_playdialog.cog < prev    next >
Text File  |  1999-11-15  |  826b  |  43 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_PlayDialog.cog
  4. #
  5. # plays a line of dialogue as you enter a sector
  6. # modified from 08_kkjoadr.cog
  7. #
  8. # [SXC]
  9. #
  10. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  11. # ========================================================================================
  12.  
  13. symbols
  14.     message    entered
  15.     message    startup
  16.  
  17.     int        bnosound=0               local
  18.     flex        dialoguelength=3.0
  19.     sector    triggersector
  20.     sound        dialogue
  21. end
  22.  
  23. # ========================================================================================
  24.  
  25. code
  26. startup:
  27.     bnosound=0;
  28.     return;
  29.  
  30. # ........................................................................................
  31.  
  32. entered:
  33.     if (bnosound==0)
  34.     {
  35.         bnosound=1;
  36.         playsoundlocal(dialogue, 1, 0, 0x0, 0);
  37.         sleep(dialoguelength);
  38.     }
  39.     return;
  40.  
  41. end
  42.  
  43.